home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
Illustrator 6.0 SDK r1 Mac
/
AI Plugin Interface
/
AITextLine.h
< prev
next >
Wrap
Text File
|
1995-12-21
|
2KB
|
115 lines
/**
AITextLine.h
Copyright (c) 1995 Adobe Systems Incorporated.
All Rights Reserved
Adobe Illustrator 6.0 Text Line Object Suite.
**/
#ifndef __AITextLine__
#define __AITextLine__
/*******************************************************************************
**
** Imports
**
**/
#include "AITypes.h"
#include "AIArt.h"
#include "AIFixedMath.h"
#if Macintosh
#ifdef __cplusplus
extern "C" {
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=mac68k
#endif
#if PRAGMA_IMPORT_SUPPORTED
#pragma import on
#endif
#endif
/*******************************************************************************
**
** Constants
**
**/
#define kAITextLineSuite "AI Text Line Suite"
#define kAITextLineVersion 2
typedef enum {
kUnknownBreak = -1,
kCharacterBreak,
kWordBreak,
kHyphenBreak
} AILineBreak;
/*******************************************************************************
**
** Types
**
**/
typedef struct {
Fixed leading;
Fixed ascent;
Fixed descent;
FixedPoint start;
FixedPoint limit;
FixedPoint extra;
FixedRect bbox;
AILineBreak reason;
Fixed wordSpace;
Fixed lineSpace;
} AILineMetrics;
/*******************************************************************************
**
** Suite
**
**/
typedef struct {
MACPASCAL FXErr (*GetFirstTextLine) ( AIArtHandle parent, AIArtHandle *first );
MACPASCAL FXErr (*GetNextTextLine) ( AIArtHandle parent, AIArtHandle child, AIArtHandle *next );
MACPASCAL FXErr (*GetTextLineByteCount) (AIArtHandle line, short *count);
MACPASCAL FXErr (*GetTextLineByteCodes) ( AIArtHandle line, short index, short count, unsigned char *codes );
MACPASCAL FXErr (*GetTextLineCharCount) ( AIArtHandle line, short *count );
MACPASCAL FXErr (*GetTextLineCharPositions) ( AIArtHandle line, short index, short count, FixedMatrix *origins );
MACPASCAL FXErr (*GetTextLineMetrics) ( AIArtHandle line, AILineMetrics *lineMetrics );
} AITextLineSuite;
#if Macintosh
#if PRAGMA_IMPORT_SUPPORTED
#pragma import off
#endif
#if PRAGMA_ALIGN_SUPPORTED
#pragma options align=reset
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif